package com.xkdx.caipiao.presistence.lottery;



import com.alibaba.fastjson.JSONArray;
import com.alibaba.fastjson.JSONObject;
import com.xkdx.caipiao.module.network.AbsModule;

public class LotteryModule extends AbsModule {

	@Override
	public void parseData() throws Exception {
		try {
			backJson = (JSONArray) result;
			for (int i = 0; i < backJson.size(); i++) {
				jsonObj = (JSONObject) backJson.get(i);
				String sortOfAct = jsonObj.getString("Act");
				if (sortOfAct.equals("LotteryRequest")) {
					ParseLottery(jsonObj.getJSONObject("Content"));
				}

			}
		} catch (Exception e) {
			// to do define a exception include all parseException
			throw e;
		}

	}

	private Object ParseLottery(JSONObject jsonObject) {
		// TODO Auto-generated method stub
		return null;
	}

}
